﻿using NUnit.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PC.PickleJar.NUnit.Adapters
{
	internal class ValidationResultActionAdapter
	{
		public ValidationResultActionAdapter()
		{
		}

		public ResultState GetResultState(ResultActionEnum resultAction)
		{
			ResultState result;

			switch (resultAction)
			{
				case ResultActionEnum.FailTest:
					result = ResultState.Failure;
					break;

				case ResultActionEnum.SkipTest:
					result = ResultState.Skipped;
					break;

				default:
					throw new NotImplementedException();
			}

			return result;
		}
	}
}
